<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <script src="../../org/angular.min.js"></script>
</head>

<body ng-app="app" ng-controller="ctrl">
    <table border="1" width="500">
        <tr>
            <th>网站</th>
            <th>url</th>
        </tr>
        <tr ng-repeat="d in data">
            <td>{{d.title}}</td>
            <td>{{d.url}}</td>
        </tr>
    </table>
    <script>
        var m = angular.module('app', []);
        m.controller('ctrl', ['$scope', '$http', function($scope, $http) {
            $http.get('1.php', {
                cache: true
            }).then(function(res) {
                $scope.data = res.data;
            }).then(function(error) {
                console.log(error)
            })

            $http.get('1.php', {
                cache: true
            }).then(function(res) {
                $scope.data = res.data;
            }).then(function(error) {
                console.log(error)
            })
        }])
    </script>
</body>

</html>
